/**
 * jims
 */
package com.jims.master.modules.orders.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.beans.Transient;


/**
 * 摆药记录Entity
 *
 * @author 陈晓阳
 * @version 2017-04-07
 */
public class DrugDispRec extends DataEntity<DrugDispRec> {

    private static final long serialVersionUID = 1L;
    private String name;        // 患者姓名
    private String storageName;        // 药房名称
    private String orderText;        // 医嘱名称
    private String drugSpec;        // 药品规格
    private String drugUnits;        // 药品单位
    private String amount;        // 摆药数量
    private String firmName;        // 药品厂商
    private String costs;        // 金额
    private String wardCode;        // 所在病区
    private String patientId;        // 病人Id
    private String visitId;        // 住院Id
    private String drugCode;        // 药品编码
    private String startTime;
    private String endTime;
    private String dispNo;


    private String count;//备用字段--医嘱个数
    private String bedNo;//病人床号

    private String deptName;


    public DrugDispRec() {
        super();
    }

    public DrugDispRec(String id) {
        super(id);
    }

    @Length(min = 1, max = 30, message = "患者姓名长度必须介于 1 和 30 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 1, max = 30, message = "药房名称长度必须介于 1 和 30 之间")
    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }

    @Length(min = 1, max = 100, message = "医嘱名称长度必须介于 1 和 100 之间")
    public String getOrderText() {
        return orderText;
    }

    public void setOrderText(String orderText) {
        this.orderText = orderText;
    }

    @Length(min = 1, max = 20, message = "药品规格长度必须介于 1 和 20 之间")
    public String getDrugSpec() {
        return drugSpec;
    }

    public void setDrugSpec(String drugSpec) {
        this.drugSpec = drugSpec;
    }

    @Length(min = 1, max = 30, message = "药品单位长度必须介于 1 和 30 之间")
    public String getDrugUnits() {
        return drugUnits;
    }

    public void setDrugUnits(String drugUnits) {
        this.drugUnits = drugUnits;
    }

    @Length(min = 1, max = 11, message = "摆药数量长度必须介于 1 和 11 之间")
    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    @Length(min = 1, max = 30, message = "药品厂商长度必须介于 1 和 30 之间")
    public String getFirmName() {
        return firmName;
    }

    public void setFirmName(String firmName) {
        this.firmName = firmName;
    }

    public String getCosts() {
        return costs;
    }

    public void setCosts(String costs) {
        this.costs = costs;
    }

    @Length(min = 1, max = 64, message = "所在病区长度必须介于 1 和 64 之间")
    public String getWardCode() {
        return wardCode;
    }

    public void setWardCode(String wardCode) {
        this.wardCode = wardCode;
    }

    @Length(min = 1, max = 64, message = "病人Id长度必须介于 1 和 64 之间")
    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    @Length(min = 1, max = 64, message = "住院Id长度必须介于 1 和 64 之间")
    public String getVisitId() {
        return visitId;
    }

    public void setVisitId(String visitId) {
        this.visitId = visitId;
    }

    @Length(min = 1, max = 50, message = "药品编码长度必须介于 1 和 50 之间")
    public String getDrugCode() {
        return drugCode;
    }

    public void setDrugCode(String drugCode) {
        this.drugCode = drugCode;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Transient
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public String getDispNo() {
        return dispNo;
    }

    public void setDispNo(String dispNo) {
        this.dispNo = dispNo;
    }
}